package cinema.v1_5.model;

public class Movie {
    private String id;
    private String name;
    private String director;
    private String actors;
    private String plot;
    private int duration;
    private double score;

    public Movie(String id, String name, String director,
                 String actors, String plot, int duration, double score) {
        this.id = id; this.name = name; this.director = director;
        this.actors = actors; this.plot = plot;
        this.duration = duration; this.score = score;
    }

    public String getId()       { return id; }
    public String getName()     { return name; }
    public String getDirector() { return director; }
    public String getActors()   { return actors; }
    public String getPlot()     { return plot; }
    public int getDuration()    { return duration; }
    public double getScore()    { return score; }

    @Override
    public String toString() {
        return name + " | " + director + " | " + duration + "分钟 | " + score + "分";
    }
}